package cn.codesea.housework_user.net.service;

import java.util.Map;

import cn.codesea.housework_user.entity.Order;
import cn.codesea.housework_user.entity.User;
import cn.codesea.housework_user.net.data.Result;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

public interface OrderService {

    @POST("order_order")
    Call<Result> order(@Body Order order);

    @POST("order_search")
    Call<Result> getOrders(@Body Map params);

    @POST("order_operate")
    Call<Result> operateOrder(@Body Map params);

    @POST("order_search_worker")
    Call<Result> getWorkerOrders(@Body Map params);

    @POST("order_operate_worker")
    Call<Result> operateOrderWorker(@Body Map params);
}
